<?php
/**
 * Created by PhpStorm.
 * User: dell
 * Date: 2018/6/11
 * Time: 12:55
 */

require_once dirname(__DIR__)."/common.php";


$db = \app\cls\tom\SysResource::getDB();
while(true){
    $data = $db->select("*")->from("tom_log")->limit(1)->get()->one();
    echo json_encode($data)."\n";
    sleep(2);
    $db->reconnect();
}
